package org.dcits.model;

import java.io.Serializable;

/**
 * @author 
 */
public class Useracct implements Serializable {
    private Integer userId;

    private String acctNo;

    private String pwd;

    private Double acctSalary;

    private String ccy;

    private static final long serialVersionUID = 1L;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getAcctNo() {
        return acctNo;
    }

    public void setAcctNo(String acctNo) {
        this.acctNo = acctNo;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Double getAcctSalary() {
        return acctSalary;
    }

    public void setAcctSalary(Double acctSalary) {
        this.acctSalary = acctSalary;
    }

    public String getCcy() {
        return ccy;
    }

    public void setCcy(String ccy) {
        this.ccy = ccy;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Useracct other = (Useracct) that;
        return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getAcctNo() == null ? other.getAcctNo() == null : this.getAcctNo().equals(other.getAcctNo()))
            && (this.getPwd() == null ? other.getPwd() == null : this.getPwd().equals(other.getPwd()))
            && (this.getAcctSalary() == null ? other.getAcctSalary() == null : this.getAcctSalary().equals(other.getAcctSalary()))
            && (this.getCcy() == null ? other.getCcy() == null : this.getCcy().equals(other.getCcy()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getAcctNo() == null) ? 0 : getAcctNo().hashCode());
        result = prime * result + ((getPwd() == null) ? 0 : getPwd().hashCode());
        result = prime * result + ((getAcctSalary() == null) ? 0 : getAcctSalary().hashCode());
        result = prime * result + ((getCcy() == null) ? 0 : getCcy().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", acctNo=").append(acctNo);
        sb.append(", pwd=").append(pwd);
        sb.append(", acctSalary=").append(acctSalary);
        sb.append(", ccy=").append(ccy);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}